package com.github.zhangsken.libcrashreport;

import android.content.Intent;
import android.os.Bundle;
import android.widget.TextView;
import android.app.*;

public class CrashViewActivity extends Activity {
    public static final String TAG = CrashViewActivity.class.getSimpleName();
    public static final String EXTRA_MSG = "szMSG";
    
    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_crashview);
        
        Intent intent = getIntent();    
        String str = intent.getStringExtra(EXTRA_MSG);
        if (str == null || str.length() == 0)
            str = "No any application crash info.";
        TextView tv = findViewById(R.id.activitycrashviewTextView1);
        tv.setText(str);
    }

} 
